package com.ssy.lingxi.platform.manage.entity.base;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 站点实体类
 *
 * @author fhj
 * @version 2.0.0
 * @date 2020/07/21
 */
@Data
@Entity
@Table(schema = "public", name = "man_site")
public class Site {

    /**
     * 站点ID
     */
    @Id
    private Long id;

    /**
     * 站点名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 站点域名
     */
    @Column(name = "domain_name")
    private String domainName;

    /**
     * 平台LOGO
     */
    @Column(name = "logo")
    private String logo;

    /**
     * 状态
     */
    @Column(name = "state")
    private Integer state = 1;

    /**
     * 国家id
     */
    @Column(name = "country_id")
    private Long countryId;

    /**
     * 语言id
     */
    @Column(name = "language_id")
    private Long languageId;

    /**
     * 币制id
     */
    @Column(name = "currency_id")
    private Long currencyId;

    /**
     * 站点底部描述
     */
    @Column(name = "describe")
    private String describe;

    /**
     * 站点备案号
     */
    @Column(name = "put_on_records")
    private String putOnRecords;

    /**
     * 链接
     */
    @Column(name = "url")
    private String url;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Long createTime;

    /**
     * 0-不开启多租户 1-开启多租户
     */
    @Column(name = "enable_multi_tenancy")
    private Integer enableMultiTenancy = 0;

}
